Optimal. Leaf size=138 \[ -\frac {3 F\left (\frac {1}{2} (c+d x+\pi )|\frac {8}{7}\right )}{\sqrt {7} d}+\frac {\sqrt {7} E\left (\frac {1}{2} (c+d x+\pi )|\frac {8}{7}\right )}{3 d}-\frac {5 \Pi \left (2;\frac {1}{2} (c+d x+\pi )|\frac {8}{7}\right )}{3 \sqrt {7} d}-\frac {\sqrt {3-4 \cos (c+d x)} \tan (c+d x)}{3 d}+\frac {\sqrt {3-4 \cos (c+d x)} \tan (c+d x) \sec (c+d x)}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.37, antiderivative size = 138, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.304, Rules used = {2796, 3055, 3059, 2654, 3002, 2662, 2806} \[ -\frac {3 F\left (\frac {1}{2} (c+d x+\pi )|\frac {8}{7}\right )}{\sqrt {7} d}+\frac {\sqrt {7} E\left (\frac {1}{2} (c+d x+\pi )|\frac {8}{7}\right )}{3 d}-\frac {5 \Pi \left (2;\frac {1}{2} (c+d x+\pi )|\frac {8}{7}\right )}{3 \sqrt {7} d}-\frac {\sqrt {3-4 \cos (c+d x)} \tan (c+d x)}{3 d}+\frac {\sqrt {3-4 \cos (c+d x)} \tan (c+d x) \sec (c+d x)}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2654
Rule 2662
Rule 2796
Rule 2806
Rule 3002
Rule 3055
Rule 3059
Rubi steps
\begin {align*} \int \sqrt {3-4 \cos (c+d x)} \sec ^3(c+d x) \, dx &=\frac {\sqrt {3-4 \cos (c+d x)} \sec (c+d x) \tan (c+d x)}{2 d}+\frac {1}{2} \int \frac {\left (-2+3 \cos (c+d x)-2 \cos ^2(c+d x)\right ) \sec ^2(c+d x)}{\sqrt {3-4 \cos (c+d x)}} \, dx\\ &=-\frac {\sqrt {3-4 \cos (c+d x)} \tan (c+d x)}{3 d}+\frac {\sqrt {3-4 \cos (c+d x)} \sec (c+d x) \tan (c+d x)}{2 d}+\frac {1}{6} \int \frac {\left (5-6 \cos (c+d x)-4 \cos ^2(c+d x)\right ) \sec (c+d x)}{\sqrt {3-4 \cos (c+d x)}} \, dx\\ &=-\frac {\sqrt {3-4 \cos (c+d x)} \tan (c+d x)}{3 d}+\frac {\sqrt {3-4 \cos (c+d x)} \sec (c+d x) \tan (c+d x)}{2 d}+\frac {1}{24} \int \frac {(20-36 \cos (c+d x)) \sec (c+d x)}{\sqrt {3-4 \cos (c+d x)}} \, dx+\frac {1}{6} \int \sqrt {3-4 \cos (c+d x)} \, dx\\ &=\frac {\sqrt {7} E\left (\frac {1}{2} (c+\pi +d x)|\frac {8}{7}\right )}{3 d}-\frac {\sqrt {3-4 \cos (c+d x)} \tan (c+d x)}{3 d}+\frac {\sqrt {3-4 \cos (c+d x)} \sec (c+d x) \tan (c+d x)}{2 d}+\frac {5}{6} \int \frac {\sec (c+d x)}{\sqrt {3-4 \cos (c+d x)}} \, dx-\frac {3}{2} \int \frac {1}{\sqrt {3-4 \cos (c+d x)}} \, dx\\ &=\frac {\sqrt {7} E\left (\frac {1}{2} (c+\pi +d x)|\frac {8}{7}\right )}{3 d}-\frac {3 F\left (\frac {1}{2} (c+\pi +d x)|\frac {8}{7}\right )}{\sqrt {7} d}-\frac {5 \Pi \left (2;\frac {1}{2} (c+\pi +d x)|\frac {8}{7}\right )}{3 \sqrt {7} d}-\frac {\sqrt {3-4 \cos (c+d x)} \tan (c+d x)}{3 d}+\frac {\sqrt {3-4 \cos (c+d x)} \sec (c+d x) \tan (c+d x)}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 1.88, size = 237, normalized size = 1.72 \[ \frac {-\frac {12 \sqrt {4 \cos (c+d x)-3} F\left (\left .\frac {1}{2} (c+d x)\right |8\right )}{\sqrt {3-4 \cos (c+d x)}}+\frac {6 \sqrt {4 \cos (c+d x)-3} \Pi \left (2;\left .\frac {1}{2} (c+d x)\right |8\right )}{\sqrt {3-4 \cos (c+d x)}}-\sqrt {3-4 \cos (c+d x)} (2 \cos (c+d x)-3) \tan (c+d x) \sec (c+d x)+\frac {2 i \sin (c+d x) \left (-12 F\left (i \sinh ^{-1}\left (\sqrt {3-4 \cos (c+d x)}\right )|-\frac {1}{7}\right )+21 E\left (i \sinh ^{-1}\left (\sqrt {3-4 \cos (c+d x)}\right )|-\frac {1}{7}\right )-8 \Pi \left (-\frac {1}{3};i \sinh ^{-1}\left (\sqrt {3-4 \cos (c+d x)}\right )|-\frac {1}{7}\right )\right )}{3 \sqrt {7} \sqrt {\sin ^2(c+d x)}}}{6 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.76, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\sqrt {-4 \, \cos \left (d x + c\right ) + 3} \sec \left (d x + c\right )^{3}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {-4 \, \cos \left (d x + c\right ) + 3} \sec \left (d x + c\right )^{3}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 1.04, size = 408, normalized size = 2.96 \[ -\frac {\sqrt {-\left (8 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-7\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (-\frac {\cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {8 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}}{\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right )^{2}}+\frac {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {8 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}}{3 \left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right )}-\frac {3 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {56 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-7}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \frac {2 \sqrt {14}}{7}\right )}{7 \sqrt {8 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}}+\frac {\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {56 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-7}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \frac {2 \sqrt {14}}{7}\right )}{3 \sqrt {8 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}}-\frac {5 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {56 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-7}\, \EllipticPi \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), 2, \frac {2 \sqrt {14}}{7}\right )}{21 \sqrt {8 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}}\right )}{\sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-8 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+7}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {-4 \, \cos \left (d x + c\right ) + 3} \sec \left (d x + c\right )^{3}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\sqrt {3-4\,\cos \left (c+d\,x\right )}}{{\cos \left (c+d\,x\right )}^3} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {3 - 4 \cos {\left (c + d x \right )}} \sec ^{3}{\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________